#include <gpiod.h>
#include <iostream>

int main() {
    gpiod_chip *chip = gpiod_chip_open_by_name("gpiochip0");
    gpiod_line *line = gpiod_chip_get_line(chip, 07);
    gpiod_line_request_output(line, "test", 1); // 输出高电平
    gpiod_line_set_value(line, 0); // 切换为低电平
    gpiod_chip_close(chip);
    return 0;
}